package com.pkk.spring.cloud.service.gateway.support;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

/**
 * 数据库持久支持
 *
 * @author peikunkun
 * @version V1.0
 * @date 2021-01-23 14:59
 **/
@Deprecated
public class MysqlRouteDefinitionSupport {


  /**
   * 网关实体
   *
   * @author peikunkun<br>
   * @version V1.0<br>
   * @date 2021/1/23 0023 下午 3:04<br>
   * @since <><br>
   */
  @Data
  @Validated
  @Deprecated
  @NoArgsConstructor
  @AllArgsConstructor
  static class SysGateway {

    /**
     * 路由主键
     */
    @NotNull
    private String id;

    private int order = 0;

    @NotNull
    private String uri = "";

    @NotEmpty
    private String predicates = "[]";

    @Valid
    private String filters = "[]";

    private String metadata = "{}";
  }


}
